Environment deployment
In order to facilitate the user's Secondary Development, SuperMap iDesktopX provides the Extension Development instance template project SampleCode, which only needs to install JDK and development tools on the computer, and simply configure the project template. Extension Development can be performed based on SampleCode.
Software installation
Based on the SuperMap iDesktop X Extension Development, JDK1.8 and Java development tools should be installed in the computer. IDEA is recommended for development tools. It is recommended to install IDEA 2020.2.2 or later.
Development engineering configuration
After IDEA is installed, the project template SampleCode of Extension Development needs to be opened and configured. The detailed description is as follows:
- Open template project: IDEA-> File-> Open-> Select the directory SuperMap iDesktopX package \ templates \ SampleCode to open the Extension Development sample template project.
- Set environment: Set the JDK environment of Project to 1.8. The setting method is: File-> Project Structure-> Project-> Project SDK-> Select 1.8 in the drop-down list.
- Add Desktop Dependency: In the dialog box of step 2, select Global Libraries-> Add-> JAVA in turn. In the pop-up Select Library Files dialog box, select the following 4 directories at the same time. Click OK and select develop. The desktop dependency is added to the Secondary Development plug-in.
- % iDesktopX Packages%/bin/
- % iDesktopX packages%/bundles/idesktop _ bundles/
- % iDesktopX bundles%/bundles/require _ bundles/
- % iDesktopX Packages%/lib/
- % iDesktopX Packages%/lib/jars
- % iDesktopX packages%/support/batJars/bdt-all-runtime. Jar.
- Compile: Click the Run or Debug button in the toolbar to automatically start SuperMap iDesktopX after compiling. After starting, the Secondary Development group will be added to the Start tab in the Ribbon. It contains two Function Buttons: Secondary Development Sample and Delete Duplicate Points. In this case, the environment is configured successfully, and the user can perform Extension Development based on SuperMap iDesktopX. Note: If SuperMap iDesktopX is not started automatically, it is recommended to update the IDEA version to 2020.2.2 or later.
Related content
Plug-in configuration overview